﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace SkinnedModel
{
    public class Channels
    {
        /// <summary>
        /// Constructs a new Channel object
        /// </summary>
        /// <param name="bone">Bone index</param>
        /// <param name="keyframeIndex">List of keyframe indices</param>
        public Channels(int bone, List<int> keyframeIndex)
        {
            Bone = bone;
            KeyframeIndex = keyframeIndex;
        }

        /// <summary>
        /// Private constructor for use by the XNB deserializer.
        /// </summary>
        private Channels()
        {
        }

        /// <summary>
        /// Gets the index of the target bone that is referred to by this channel
        /// </summary>
        [ContentSerializer]
        public int Bone { get; private set; }

        /// <summary>
        /// Gets a list of keyframe indices for this channel
        /// </summary>
        [ContentSerializer]
        public List<int> KeyframeIndex { get; private set; }

    }
}
